TOSHIBA T2/T3 Ethernet/Serial Communication Driver

 

TOSHIBA T2/T3 Ethernet/Serial is driver to communicate with T2/T3 PLC of Toshiba Co., in Japan.

T2, T3/T3H, etc are wide use PLC of TOSHIBA Co. in Japan.

TOSHIBA T2/T3 Ethernet/Serial communication driver can Serial communication such as Ethernet and RS-232C.

                  Ethernet : Connect to 10Base5, 10Base2 ( LAN ) terminal of Ethernet communication card such as EN311, etc.

                  RS-232C Serial  : Connect to RS-232C terminal of Serial communication card.

 

Reference) In case of ethernet communication( UDP/IP ) by using TOSHIBA T2/T3 Ethernet/Serial driver, it is possible to access to one PLC to one port.

 

But, if you control read speed( Set read cycle as 500 mSec ) and computer is different, it is possible to access 2 ~ 3 computers( Only one access to one computer ).

(It can be different according to CPU type)

 

Importance) Communication with ethernet communication card needs communication program( PLC_SCAN.exe ) more than 8.3.6 or 8.4.1 version.

 

1. Read settings

 

<Figure 1> is read setting example of TOSHIBA T2/T3 Ethernet/Serial driver.
<Figure 1> Read setting example of TOSHIBA T2/T3 Ethernet/Serial driver
 

In case of Ethernet communication by using TOSHIBA T2/T3 Ethernet/Serial driver DEVICE settings are entered as Device type(UDP/IP), IP address of PLC(192.168.1.106), service port number( 1024 : Refer to no.4 item ), respectively, according to setting of Ladder program such as no.4 item.

Also, in case of Serial communication by using TOSHIBA T2/T3 Ethernet/Serial driver DEVICE settings are entered as COM1, 9600,0,8,1, in order, according to setting of Serial communication card.

 

Importance) TOSHIBA T2/T3 Ethernet communication support UDP/IP only, currently, and it is possible to communicate when settings of IP and service port are entered at Ladder program.

 

TOSHIBA T2/T3 Ethernet/Serial communication driver's read schedule

Read schedule setting parameters are as follows:

1)      STATION – PLC Station number between 0 and 15. (Not use in case of UDP/IP communication)

2)      Read memory type – X, Y, L, W, F, R, S, C, T, D, etc. (Refer to <Table 1>)

3)      Read start address – Start address to read.

Always WORD unit address – Use same start address with WORD/DWORD/FLOAT.

4)      Save Start Address for Communication Server - Saving start address of Communication Server.

5)      Read Size - Number of WORD/DWORD/FLOAT to read.

(It is possible to read maximum 32 WORD, 16 DWORD/FLOAT data, at a time)

 

Read schedule example)

READ,     0,    DW,     0,    0,  32,

READ,     0,    DW,   200,   32,  32,

READ,     0,    XW,     0,  100,  16,

READ,     0,    RW,   100,  120,  16,

 

<Table 1> is memory type and contents supported from TOSHIBA T2/T3 Ethernet/Serial driver, <Table 2> is usable memory address of T3 CPU.

Memory Type

Contents

Remarks

X, XW, XD, XF, XB

Input Devices

1 digit memory ( X, Y, L .. ) :

Read/Analog output = WORD unit,

Digital output = Bit write

 

 

?W = WORD unit read/write,

?D = DWORD unit read/write,

?F = FLOAT unit read/write,

?X = Bit( Use digital output only )

Y, YW, YD, YF, YB

Output Devices

L, LW, LD, LF, LB

Link Registers

W, WW, WD, WF, WB,

Link Registers

F, FW, FD, FF, FB

File Registers

R, RW, RD, RF, RB

Auxiliary Registers

S, SW, SD, SF, SB

Special Devices

C, CW, CD, CF, CB

Counter Devices

T, TW, TD, TF, TB

Timer Devices

D, DW, DD, DF, DB

Data Memory

<Table 1> Memory type and contents supported from TOSHIBA T2/T3 Ethernet/Serial driver
Memory Type

Address Range

Unit

X

XW0000 ~ XW0511

XD0000 ~ XD0510

XF0000 ~ XF510

XX0000 ~ XX511F

?W = WORD,

?D = DWORD,

?F = FLOAT,

?X = Bit (Digital output only)

Y

YW0000 ~ YW0511

YD0000 ~ YD0510

YF0000 ~ YF0510

YX0000 ~ YX511F

L

LW0000 ~ LW0255

LD0000 ~ LD0254

LF0000 ~ LF0254

LX0000 ~ LX255F

W

WW0000 ~ WW2047

WD0000 ~ WD2046

WF0000 ~ WF2046

WX0000 ~ WX2047F

F

FW0000 ~ FW8191

FD0000 ~ FD8190

FF0000 ~ FF8190

FX0000 ~ FX8191F

R

RW0000 ~ RW0999

RD0000 ~ RD0998

RF0000 ~ RF0998

RX0000 ~ RX999F

S

SW0000 ~ SW0255

SD0000 ~ SD0254

SF0000 ~ SF0254

SX0000 ~ SX255F

C

CW0000 ~ CW0511

CD0000 ~ CD0510

CF0000 ~ CF0510

CX0000 ~ CX511F

T

TW0000 ~ TW0999

TD0000 ~ TD0998

TF0000 ~ TF0998

TX0000 ~ TX999F

D

DW0000 ~ DW8191

DD0000 ~ DD8190

DF0000 ~ DF8190

DX0000 ~ DX8191F

<Table 2> Memory type and address of TOSHIBA T3 type

If you click the icon  in protocol option part at <Figure 1>, you can see the dialog box such as <Figure 2>. You can also set read schedule by using this part.

<Figure 2> Example of TOSHIBA T2/T3 Ethernet/Serial driver's Option dialog box

You can set read schedule by using , , button and listbox of <Figure 2>.

<Figure 3> Example of TOSHIBA T2/T3 Ethernet/Serial driver's read schedule Add/Edit dialog box
 

When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.

 

2. Write settings

You can change PLC memory as set value by using write settings.

 

Digital Write

Digital output Tag setting parameters are as follows:

PORT

Connected PORT number

0 ~ 255

Station

Number between 0 and 15

Not use in case of Ethernet communication

ADDRESS

Digital output address

0000 ~ xxxF,

- Front 3 ~ 7 digits are decimal WORD unit output address

- Back 1 digit is no.0 ~ no.F bit position

Extra1

X, Y, L, W, F, R, S, C, T, D, etc

Refer to <Table 1>

Extra2

Don't care

 

Reference) Digital output( Bit write ) of WORD exclusive area such as F, C, T, D consist of doing digital output by calculating bit after read WORD value.

 

Write example 1)

Port : 0  Station : 0  Address : 0035,  Extra1 : Y, Extra2 : Blank

The setting parameter shown above is example of ON/OFF bit value for Y memory 3rd address, WORD 6th (no.5) of TOSHIBA T2/T3 PLC.

 

Write example 2)

Port : 0  Station : 0  Address : 123F,  Extra1 : D, Extra2 : Blank

The setting parameter shown above is example of ON/OFF bit value for D memory 123th address, WORD 16th (no.F) of TOSHIBA T2/T3 PLC.

 

Write example 3)

Port : 0  Station : 0  Address : 124A,  Extra1 : DX, Extra2 : Blank

The setting parameter shown above is example of ON/OFF bit value for D memory(DX and D are same mean) 124th address, WORD 11th (no.A) of TOSHIBA T2/T3 PLC.

 

Analog Write

Analog output Tag setting parameters are as follows:

PORT

Connected PORT number

0 ~ 255

Station

Number between 0 and 15

Not use in case of Ethernet communication

ADDRESS

Analog output address

Decimal WORD unit output address

WORD/DWORD/FLOAT are same address

Extra1

X, Y, L, W, F, R, S, C, T, D, etc

Refer to <Table 1>

Extra2

Don't care

 

Write example 1)

Port : 0  Station : 0  Address : 0007,  Extra1 : Y, Extra2 : Blank

The setting parameter shown above is an example of analog write for changing WORD of Y memory 7th address for TOSHIBA T2/T3 PLC as set value.

 

Write example 2)

Port : 0  Station : 0  Address : 0025,  Extra1 : T, Extra2 : Blank

The setting parameter shown above is an example of analog write for changing WORD of T memory 25th address for TOSHIBA T2/T3 PLC as set value.

 

Write example 3)

Port : 0  Station : 0  Address : 0102,  Extra1 : D, Extra2 : Blank

The setting parameter shown above is an example of analog write for changing WORD of D memory 102th address for TOSHIBA T2/T3 PLC as set value.

 

Write example 4)

Port : 0  Station : 0  Address : 0150,  Extra1 : DD, Extra2 : Blank

The setting parameter shown above is an example of analog write for changing DWORD of D memory 150th address( 150 = Low Word, 151 = Hi Word ) for TOSHIBA T2/T3 PLC as set value.

 

Write example 5)

Port : 0  Station : 0  Address : 0150,  Extra1 : DF, Extra2 : Blank

The setting parameter shown above is an example of analog write for changing FLOAT of D memory 150th address(Convert 150, 151 WORD to FLOAT) for TOSHIBA T2/T3 PLC as set value.

 

Write example 6)

Port : 0  Station : 0  Address : 1235,  Extra1 : DW, Extra2 : Blank

The setting parameter shown above is an example of analog write for changing WORD of D memory(DW and D are same mean) 1235th address for TOSHIBA T2/T3 PLC as set value.

 
3. Basic power and communication cable connection

 

Basic power connection

Connect 100 or 220V AC power to power module of <Figure 4>. ( Select power type : 100V = Short, 220V = Open )

 

Ethernet module auxiliary power connection

Connect 12V DC power to Auxiliary power input section of Ethernet module such as <Figure 4>.

<Figure 4> Example of installing module of Ethernet ,etc to TOSHIBA T3 PLC

Ethernet communication cable connection

Connect Ethernet communication cable to ( EN311, etc ) 10Base5, 10Base2 ( LAN ) terminal of Ethernet module such as <Figure 4>.

 

4. Setting for IP and service port of Ethernet communication card

IP address, etc of Ethernet communication card is set by using 'T-PDS32 for Windows' Ladder program supported from TOSHIBA Co., as follows.

1) Make a new project or open existing project by executing T-PDS32 for Windows program.

2) Add the contents such as <Figure 5> to Ladder.

3) <Figure 5> is example of setting for UDP/IP communication by using 192.168.111.126 IP address and no.1024 service port.

4) –22336 = A8C0h and 32367 = 7E6Fh at <Figure 5>, these become 192(C0), 168(A8), 111(6F), 126(7E) by displaying as decimal, in Low Byte order.

5) This 192, 168, 111, 126 number is IP address. ( It is possible to write different IP address by modifying number )

6) Also, 1024 of '01024 MOV RW004' area is service port number. ( Refer to <Table 3> ~ <Table 5> )

 

Notice) In case of writing Ladder such as <Figure 5> and reclosing the PLC power, you have to make ON the R0501, R0502, R0503 each once to complete the setting for service port and IP address which you want.

<Figure 5> Example of writing IP address and service port of Ethernet communication card at Ladder

Parameter

Value

Description

RW000

3100h ( 12544 )

Specifies module

RW001

0013h ( 19 )

Change mode command code

RW002

2000h ( 8192 )

Specifies standby mode

<Table 3> Ladder contents description for R0601 ¡¦ first block of <Figure 5>

Parameter

Value

Description

RW000

3100h ( 12544 )

Specifies module

RW001

0012h ( 18 )

Set IP and port command code

RW002

User setting

Front 2 digits IP address ( Low/High Byte, in order )

RW003

Back 2 digits IP address ( Low/High Byte, in order )

RW004

Service port number

<Table 4> Ladder contents description for R0602 ¡¦ second block of <Figure 5>

Parameter

Value

Description

RW000

3100h ( 12544 )

Specifies module

RW001

0013h ( 19 )

Change mode command code

RW002

2000h ( 8192 )

Specifies run mode

<Table 5> Ladder contents description for R0603 ¡¦ third block of <Figure 5>

<Figure 6> is example of Ladder for setting 192.168.1.106 IP address and 1024 service port at T-PDS32 for Windows program.

<Figure 6> Example of Ladder for setting 192.168.1.106 IP address and 1024 service port at T-PDS32 for Windows program